package com.hzqy.service.tbdynamicsqlconfig;

import javax.annotation.Resource;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.hzqy.persistence.dao.tbdynamicsqlconfig.TbDynamicSqlConfigDao;
import com.hzqy.service.core.GenericServiceBean;
import com.hzqy.web.vo.tbdynamicsqlconfig.TbDynamicSqlConfigVo;

@Service
public class TbDynamicSqlConfigServiceBeen extends GenericServiceBean<TbDynamicSqlConfigVo,TbDynamicSqlConfigDao,Integer>{
	private static final long serialVersionUID = 1L;
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	
	@Resource
	private TbDynamicSqlConfigDao tbDynamicSqlConfigDao;
	
	@Override
	public TbDynamicSqlConfigDao getEntityDao(){
		return tbDynamicSqlConfigDao;
	}
	
	/**
	 * 通过key查找value
	 * @param f_sc_key
	 * @return
	 */
	public TbDynamicSqlConfigVo selectDynamicSqlConfigByKey(String f_tdsc_key) {
		return tbDynamicSqlConfigDao.selectDynamicSqlConfigByKey(f_tdsc_key);
	}
	
}
